﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CasaBella.UI
{
    public partial class FrmMenu : Telerik.WinControls.UI.RadRibbonForm
    {
        public FrmMenu()
        {
            InitializeComponent();
            this.BuilUp();
            this.FormClosed += FrmMenu_FormClosed;
        }

        private void FrmMenu_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void busColor_Click(object sender, EventArgs e)
        {
            FrmColor frm = new FrmColor();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regColor_Click(object sender, EventArgs e)
        {
            FrmMttoColor frm = new FrmMttoColor();
            frm.NuevaColor();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busMedida_Click(object sender, EventArgs e)
        {
            FrmMedida frm = new FrmMedida();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regMedida_Click(object sender, EventArgs e)
        {
            FrmMttoMedida frm = new FrmMttoMedida();
            frm.NuevaMedida();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busMarca_Click(object sender, EventArgs e)
        {
            FrmMarca frm = new FrmMarca();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regMarca_Click(object sender, EventArgs e)
        {
            FrmMttoMarca frm = new FrmMttoMarca();
            frm.NuevaMarca();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busModelo_Click(object sender, EventArgs e)
        {
            FrmModelo frm = new FrmModelo();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regModelo_Click(object sender, EventArgs e)
        {
            FrmMttoModelo frm = new FrmMttoModelo();
            frm.NuevaModelo();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busOperador_Click(object sender, EventArgs e)
        {
            FrmOperador frm = new FrmOperador();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regOperador_Click(object sender, EventArgs e)
        {
            FrmMttoOperador frm = new FrmMttoOperador();
            frm.NuevaOperador();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busRol_Click(object sender, EventArgs e)
        {
            FrmRol frm = new FrmRol();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regRol_Click(object sender, EventArgs e)
        {
            FrmMttoRol frm = new FrmMttoRol();
            frm.NuevoRol();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busTipComprobnt_Click(object sender, EventArgs e)
        {
            FrmTipoComprobante frm = new FrmTipoComprobante();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regTipComprobnt_Click(object sender, EventArgs e)
        {
            FrmMttoTipoComprobante frm = new FrmMttoTipoComprobante();
            frm.NuevoTipoComprobante();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busEstadCivil_Click(object sender, EventArgs e)
        {
            FrmEstadoCivil frm = new FrmEstadoCivil();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regEstadCivil_Click(object sender, EventArgs e)
        {
            FrmMttoEstadoCivil frm = new FrmMttoEstadoCivil();
            frm.NuevEstCivil();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busSexo_Click(object sender, EventArgs e)
        {
            FrmSexo frm = new FrmSexo();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regSexo_Click(object sender, EventArgs e)
        {
            FrmMttoSexo frm = new FrmMttoSexo();
            frm.NuevoSexo();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void salir_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void busProducto_Click(object sender, EventArgs e)
        {
            FrmProducto frm = new FrmProducto();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regProducto_Click(object sender, EventArgs e)
        {
            FrmMttoProducto frm = new FrmMttoProducto();
            frm.NuevoProducto();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busProveedor_Click(object sender, EventArgs e)
        {
            FrmProveedor frm = new FrmProveedor();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regProveedor_Click(object sender, EventArgs e)
        {
            FrmMttoProveedor frm = new FrmMttoProveedor();
            frm.NuevoProveedor();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busCliente_Click(object sender, EventArgs e)
        {
            FrmCliente frm = new FrmCliente();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void regCliente_Click(object sender, EventArgs e)
        {
            FrmMttoCliente frm = new FrmMttoCliente();
            frm.NuevoCliente();
            frm.MdiParent = this;
            frm.Show();
            //radRibbonBar1.Expanded = false;
        }

        private void busMaterial_Click(object sender, EventArgs e)
        {
            FrmMaterial frm = new FrmMaterial();
            frm.MdiParent = this;
            frm.Show();
        }

        private void regMaterial_Click(object sender, EventArgs e)
        {
            FrmMttoMaterial frm = new FrmMttoMaterial();
            frm.NuevaMaterial();
            frm.MdiParent = this;
            frm.Show();
        }
    }
}
